const request = require('../utils/request')

const getBookmark = (query) => {
    console.log('getBookmark: ')
    console.log(query)
    return request('POST', '/book/mark/test', query, {
        crypto: ''
    })
}

const addBookmark = (query) => {
    console.log('addBookmark: ')
    console.log(query)
    return request('POST', '/book/mark/add', query, {
        crypto: ''
    })
}

const editBookmark = (query) => {
    console.log('editBookmark: ')
    console.log(query)
    return request('POST', '/book/mark/edit', query, {
        crypto: ''
    })
}

const removeBookmark = (query) => {
    console.log('removeBookmark: ')
    console.log(query)
    return request('POST', '/book/mark/edit', query, {
        crypto: ''
    })
}

/**
 * export default适用于es6开发导出某个模块, 对应的导入为import xxx from 'xxx'
 */
export default {
    getBookmark,
    addBookmark,
    editBookmark
}
